@import '~@/styles/theme.less';

.fabric-wrapper {
  .fabric-title {
    .flow-title {
      height: 24px;
      line-height: 24px;
      font-size: 16px;
      font-weight: 500;
      color: @formLabel;
      .title-text {
        padding-left: 14px;
      }
      &::before {
        content: "";
        position: absolute;
        margin-top: 4px;
        width: 6px;
        height: 16px;
        background: @primary-color;
      }
    }
  }

  .fabric-title {
    min-height: 216px;
  }

  .fabric-flow {
    .flow-step {
      display: flex;
      align-items: center;
      height: 72px;
      margin-bottom: 24px;
      background: #fff;
      border-radius: 2px;
      padding: 0 30px;
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: @formLabel;
      // line-height: 24px;
      .step-right{
        margin-left: 4px;
        flex: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .step-item{
        display: flex;
      }
      .step-img {
        margin-right: 10px;
      }
      .step-number {
        font-size: 14px;
        font-family: DIN-Medium, DIN;
        font-weight: 400;
        margin-left: 9px;
      }
      .step-text:not(.step-no-click) {
        // cursor: pointer;
        line-height: 30px;
        // &:hover{
        //   color: @primary-color;
        // }
      }
      .step-no-click{
        line-height: 30px;
      }
      .flow-step-arrow {
        // margin: 0 35px;
        width: 26px;
        height: 14px;
        background-image: url('../../../../images/fabric/arrow.svg');
      }
    }
  }

  .group {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    .item {
      display: flex;
      flex-direction: column;
      position: relative;
      width: calc((100% - 20px * 3) / 4);
      height: 216px;
      margin-right: 20px;
      margin-bottom: 20px;
      padding: 20px;
      cursor: pointer;
      background-color: rgba(255, 255, 255, 1);
      border-radius: 2px;
      transition: all .3s;
      &.disabled-click {
        cursor: not-allowed;
      }
      &:nth-child(4n + 4) {
        margin-right: 0;
      }
      &:hover {
        // border-color: @primary-color;
        box-shadow: 0px 6px 18px 0px rgba(20, 30, 44, 0.1);
        .delete-league {
          display: block;
        }
      }
      &.isGuomi {
        background-image: url('~@/images/fabric/chuo.svg');
        background-repeat: no-repeat;
        background-position: calc(100% - 12px) calc(100% - 14px);
        background-size: auto;
      }
      &:active {
        border-color: @primary-color;
        box-shadow: 0px 6px 18px 0px rgba(20, 30, 44, 0.1);
      }
      &:focus {
        border-color: @primary-color;
        box-shadow: 0px 6px 18px 0px rgba(20, 30, 44, 0.1);
      }
      .header {
        display: flex;
        width: 100%;
        padding-bottom: 15px;
        border-bottom: 1px solid #f7f7f9;
        .name-wrapper {
          // flex: 1;
          margin-top: -3.5px;
          width: calc(100% - 20px);
          .title-wrapper{
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            .operate{
              display: flex;
              flex-direction: column;
              width: 15px;
              height: 15px;
              align-items: center;
              justify-content: space-around;
              span{
                width: 2px;
                height: 2px;
                border-radius: 50%;
                background: #999999;
              }
              &:hover{
                span{
                  background: @primary-color;
                }
              }
            }
            .performance {
              padding: 1px 10px;
              font-size: 12px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #FE983D;
              line-height: 18px;
              border: 1px solid #FE983D;
              background: #FEF9ED;
              border-radius: 2px;
            }
            .company_p{
              color: @success;
              border-color: @success;
              background: #EDF8E8;
            }
            .basic_p{
              color: #FE983D;
              border-color: #FE983D;
              background:  #FEF9ED;
            }
          }
          .name {
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: @formLabel;
            line-height: 20px;
            overflow:hidden;
            text-overflow:ellipsis;
            white-space:nowrap;
            width: calc(100% - 73px);
          }
          .org-address {
            font-size: 12px;
            color: @placeholderColor;
            line-height: 18px;
          }
        }
        .status {
          font-size: 12px;
          font-family: PingFangSC-Regular, PingFang SC;
          color: rgba(23, 30, 45, 0.65);
          margin-right: 6px;
          img{
            width: 14px;
            height: 14px;
          }
        }
      }

      
      .delete-league {
        width: 32px;
        height: 24px;
        right: 0px;
        position: absolute;
        top: 16px;
        display: none;
        z-index: 100;
        .show-delete {
          display: flex;
          width: 32px;
          height: 24px;
          align-items: center;
          justify-content: center;
          border-radius: 4px 0px 0px 4px;
          border: 1px solid rgba(232, 234, 238, 1);
          border-right: none;
          background: rgba(247, 247, 247, 1);
          cursor: pointer;
          .delete-img {
            width: 11px;
            height: 10px;
            background-size: cover !important;
            background-image: url("../../../../images/fabric/icon_delete.svg");
          }
          &:hover {
            border-color: @primary-color;
            background: rgba(247, 247, 247, 1);
            .delete-img {
              background-image: url("../../../../images/fabric/icon_delete-hover.svg");
            }
          }
          &:active {
            border-color: #0073e3;
            background: rgba(247, 247, 247, 1);
            .delete-img {
              background-image: url("../../../../images/fabric/icon_delete-active.svg");
            }
          }
        }
      }
      .info {
        display: flex;
        flex-direction: column;
        margin-top: 14px;
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: rgba(23, 30, 45, 0.45);
        line-height: 20px;
        .info-item {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          margin-top: 8px;
          .info-value {
            color: rgba(23, 30, 45, 0.85);
            text-align: right;
            flex: 1;
            margin-left: 8px;
            .ellipsis-lines(1);
          }
          &:nth-child(1) {
            margin-top: 0;
          }
          .league-text {
            width: calc(100% - 72px);
          }
        }
      }
      .ellipsis {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-all;
      }
      .has-status {
        display: inline-block;
        max-width: calc(100% - 85px);
      }
      .not-status {
        display: inline-block;
        width: calc(100% - 48px);
      }
    }
   
    .create {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      font-size: 14px;
      flex-direction: row;
      font-weight: 400;
      color: @normalColor;
      cursor: pointer;

      .plus {
        font-size: 14px;
        margin-right: 10px;
        svg{
          color: @normalColor;
        }
      }
    }
  }
  .show-all {
    margin-top: -12px;
    height: 20px;
    font-size: 12px;
    color: rgba(23, 30, 45, 0.25);
    cursor: pointer;
    transition: color .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    .tringle-down {
      display: inline-block;
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 6px solid rgba(23, 30, 45, 0.25);
      margin-left: 8px;
      transition: all .3s;
    }
    .tringle-up {
      display: inline-block;
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-bottom: 6px solid rgba(23, 30, 45, 0.25);
      margin-left: 8px;
      transition: all .3s;
    }
    &:hover {
      color: @primary-color;
      .tringle-down {
        border-top-color: @primary-color;
      }
      .tringle-up {
        border-bottom-color: @primary-color;
      }
    }
  }
}

@keyframes antStatusProcessing {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}

